/**
 * @description 组件样式
 * @author: 陈陈
 * @date: 2025/05/09
 * @phone: 18560000860
 * @email: 18560000860@qq.com
 * @company: 济南晨霜信息技术有限公司 /
 * @business: 承接前后端项目的开发
 */
.pure-tag {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	border-radius: var(--pure-tag-border-radius, var(--pure-radius-small));
	position: relative;
	padding: var(--pure-tag-padding, 6px 16px);
	border: var(--pure-tag-border-width, 0) var(--pure-tag-border-style, solid)
		var(--pure-tag-border-color, currentColor);

	&::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 0;
		width: 100%;
		height: 100%;
		background: var(--pure-tag-background, var(--pure-background-light));
		opacity: var(--pure-tag-background-opacity);
		border-radius: inherit;
	}

	&__icon,
	&__text,
	&__close {
		position: relative;
		z-index: 1;
	}

	&__icon,
	&__close {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	&__icon {
		font-size: var(--pure-tag-icon-font-size);
		font-weight: var(--pure-tag-icon-weight);
		color: var(--pure-tag-icon-color);
		margin: var(--pure-tag-icon-margin, 0 4px 0 0);
		padding: var(--pure-tag-icon-padding);
		background: var(--pure-tag-icon-background);
		border-radius: var(--pure-tag-icon-border-radius);
		border: var(--pure-tag-icon-border);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	&__close {
		font-size: var(--pure-tag-close-font-size);
		font-weight: var(--pure-tag-close-weight);
		color: var(--pure-tag-close-color);
		margin: var(--pure-tag-close-margin, 0 -0.2em 0 4px);
		padding: var(--pure-tag-close-padding);
		background: var(--pure-tag-close-background);
		border-radius: var(--pure-tag-close-border-radius);
		border: var(--pure-tag-close-border);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	&--theme {
		color: var(--pure-tag-color, var(--pure-text-color-invert));

		&::before {
			background: var(--pure-tag-background, var(--pure-tag-theme));
		}
	}

	&--ghost {
		color: var(--pure-tag-color, var(--pure-tag-theme));
		border-width: var(--pure-tag-border-width, 1px);

		&::before {
			opacity: var(--pure-tag-background-opacity, var(--pure-opacity-ghost));
		}
	}

	&--plain {
		color: var(--pure-tag-color, var(--pure-tag-theme));
		border-width: var(--pure-tag-border-width, 1px);

		&::before {
			opacity: var(--pure-tag-background-opacity, 0);
		}
	}

	&--round {
		border-radius: var(--pure-tag-border-radius, var(--pure-radius-round));
	}

	&--square {
		border-radius: var(--pure-tag-border-radius, var(--pure-radius-none));
	}
}
